//
//  DPCommonTool.h
//  polyv_video_plugin
//
//  Created by Jared on 2019/11/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DPCommonTool : NSObject
@property (nonatomic, copy) NSDictionary  * selfBuyDic;
@property (nonatomic,assign) CGFloat sysVoiceValue;
@property (nonatomic,assign) CGFloat learnY;


+(instancetype)sharedTool;

+ (CGSize)getStrSizeWithString:(NSString *)str font:(UIFont *)font constraitSize:(CGSize)conSize ;

+ (CGSize)getStrSizeWithString:(NSString *)str font:(UIFont *)font constraitSize:(CGSize)conSize lineSpace:(CGFloat)lp;

+ (UIImage *)imageWithColor:(UIColor *)color;

+ (BOOL)isEmptyForString:(NSString *)str;

- (void)setScreenBrightness:(CGFloat)brtValue;
- (CGFloat)getScreenBrightnessValue;

@end

NS_ASSUME_NONNULL_END
